public class Demo03 {
    public static void main(String[] args) {
        System.out.println(mySum(mySum(1, 2), 3));
        System.out.println("最大值为：" + myMax(4, 5));
    }

    public static int myMax(int num1, int num2) {
        return num1 > num2 ? num1 : num2;
//        if (num1 > num2) {
//            return num1;
//        }else {
//            return num2;
//        }
    }

    public static int mySum(int num1, int num2) {
        return num1 + num2;
    }
}
